package iamutkarshtiwari.github.io.imageeditorsample;

import iamutkarshtiwari.github.io.ananas.editimage.utils.PermissionUtils;
import ohos.aafwk.ability.Ability;
import ohos.aafwk.content.Intent;


public class MainAbility extends Ability {
    @Override
    public void onStart(Intent intent) {
        super.onStart(intent);
        super.setMainRoute(MainAbilitySlice.class.getName());

        String[] permissions = new String[]{
                "ohos.permission.CAMERA",
                "ohos.permission.WRITE_USER_STORAGE",
                "ohos.permission.READ_USER_STORAGE",
                "ohos.permission.READ_MEDIA",
                "ohos.permission.WRITE_MEDIA"
        };
        PermissionUtils.getCameraPermission(permissions, this);
    }
}
